#!/bin/bash

# V2版本快速测试脚本

echo "======================================"
echo "  DataPulse V2 (Pipeline) 快速测试"
echo "======================================"
echo ""

BASE_URL="http://localhost:8080/v2"

echo "1. 健康检查..."
curl -s "$BASE_URL/health" | jq .
echo ""
echo ""

echo "2. 查询Pipeline步骤信息..."
curl -s "$BASE_URL/steps" | jq .
echo ""
echo ""

echo "3. 测试日报..."
curl -s "$BASE_URL/report?type=日报" | jq .
echo ""
echo ""

echo "4. 测试周报..."
curl -s "$BASE_URL/report?type=周报" | jq .
echo ""
echo ""

echo "5. 测试月报..."
curl -s "$BASE_URL/report?type=月报" | jq .
echo ""
echo ""

echo "======================================"
echo "  测试完成"
echo "======================================"

